<?php

namespace app\admin\validate\information;

use think\Validate;

class Inventory extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'number' => 'unique',
    ];
    /**
     * 提示消息
     */
    protected $message = [
        'number.unique' => '已存在该物料编码',
    ];
    /**
     * 验证场景
     */
    protected $scene = [
        'add'  => ['number'],
        'edit' => ['number'],
    ];
    
}
